package com.ww.springboot.cyclic;

import com.ww.springboot.cyclic.bean.A;
import com.ww.springboot.cyclic.bean.B;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2022-05-18 19:56
 */
public class CyclicRun {

    public static void main(String[] args) {

        //获取beanFactory
        ApplicationContext ac = new ClassPathXmlApplicationContext("classpath:/META-INF/dependency-lookup-context.xml");
        //查找A
        A a = ac.getBean(A.class);
        //查找B
        B b = ac.getBean(B.class);

        System.out.println(a);
        System.out.println(b);
    }
}
